<%@page import="java.util.List"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">Result</a>
            </li>
        </ul>
    </div>



                 <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>Student Result Details</h2>

                    <div class="box-icon">
                        
                    </div>
                </div>
                <div class="box-content">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>Correct Answer</th>
                                <th>Wrong Answer</th>
                                <th>Cut-Off-Marks</th>
                                <th>Your Marks</th>
                                <th>Total Marks</th>
                                <th>Status</th>
                          
                            </tr>
                        </thead>
                        <tbody>


                           
                               
                                   <tr> 
                                    <td class="center">${sessionScope.correct_Ans}</td>
                                    <td class="center"> ${sessionScope.wrong_Ans}</td>
                                    <td class="center"> ${sessionScope.allquestions.get(0).test.cutoffmarks}</td>
                                    <td class="center">${(sessionScope.allquestions.get(0).test.positivemarking * sessionScope.correct_Ans) - (sessionScope.allquestions.get(0).test.negativemarking * sessionScope.wrong_Ans)}</td>
                                    <td class="center">${sessionScope.allquestions.get(0).test.positivemarking * sessionScope.allquestions.get(0).test.totalquestions }</td>
                                     <td class="center">${sessionScope.status}</td>
                                 
                                </tr>
                           

                        </tbody>
                    </table>
                    
                </div>
            </div>
        </div>
        <!--/span-->


        <!--/span-->
    </div>

    <c:forEach items="${sessionScope.allquestions}" var="test_question" >



        <div class="row">
            <div class="box col-md-12">
                <div class="box-inner">
                    <div class="box-header well" data-original-title="">
                        <h2><i class="glyphicon glyphicon-question-sign"></i> Question ${i}</h2>

                       
                    </div>
                    <div class="box-content">

                        <div class="row">
                            <table>
                                <tr><td><h5><strong>Topic :</strong></h5></td><td>${test_question.question.topic.name}</td></tr>
                                <tr><td><h5><strong>Question :</strong></h5></td><td>${test_question.question.qdescription}</td></tr>
                                <tr><td><h5><strong>Solution :</strong></h5></td><td>${test_question.question.solution}</td></tr>
                                <tr><td><h5><strong>Correct Answer :</strong></h5></td><td>${test_question.question.answer}</td></tr>
                                <tr><td><h5><strong>Your Answer :</strong></h5></td><td>${test_question.question.uans}</td></tr>
                            </table>
                        </div>

                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
    </c:forEach>

    <div class="form-group">
        <!--<button type="submit" class="btn btn-default add_test_question">Add Question</button>-->
    </div>
    <!--</form>-->
    
</div>